<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- microdata -->
<meta itemprop="image" content="/images/favicon.ico">

<meta name="description" content="UDATA-Your data service" />
<meta name="keywords" content="UDATA,ISML,International saimoe league" />
<meta name="author" content="Orleans" />
<link rel="shortcut icon"
	href="<?php echo Yii::app()->request->baseUrl; ?>/images/favicon.ico"
	type="image/x-icon" />
<link rel="icon" type="image/png"
	href="<?php echo Yii::app()->request->baseUrl; ?>/images/favicon.ico">

<meta name="robots" content="all" />
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-38740951-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>

<script type="text/javascript"
	src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript"
	src="<?php echo Yii::app()->request->baseUrl; ?>/js/main.js"></script>

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-38740951-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>


<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

<link rel="stylesheet" type="text/css"
	href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />

<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>
	<div id="container">
		<!-- header -->
		<div id="header">
			<div id="logo-div">
				<?php echo Yii::t('isml_site',Yii::app()->name); ?>
			</div>
			<div id="setting-div">
				<div id="lang-div">
					<select id="lang-select">
						<option value="zh_cn"
						<?php echo "zh_cn"==Yii::app()->language?"selected":"" ?>>中文</option>
						<option value="en_us"
						<?php echo "en_us"==Yii::app()->language?"selected":"" ?>>English</option>
					</select>
				</div>
				<div id="user-div">
					<a href="<?php echo Yii::app()->request->baseUrl; ?>/site/login">
						<span><?php echo Yii::t('isml_site','Login')?> </span>
					</a>
					<a href="<?php echo Yii::app()->request->baseUrl; ?>/site/register">
						<span><?php echo Yii::t('isml_site','Register')?> </span>
					</a>
				</div>
			</div>
		</div>




		<div id="cssmenu">
			<ul>

				<li>
					<a href="<?php echo Yii::app()->request->baseUrl; ?>/site/index">
						<span><?php echo Yii::t('isml_site','Home')?> </span>
					</a>
				</li>
				<li class='has-sub'>
					<a href="#">
						<span><?php echo  Yii::t('isml_site','Result')?> </span>
					</a>
					<ul>
						<li class='last'>
							<a href="<?php echo Yii::app()->request->baseUrl; ?>/match">
								<span><?php echo  Yii::t('isml_site','Match')?> </span>
							</a>
						</li>
					</ul>

				</li>
				<li class='has-sub'>
					<a
						href="<?php echo Yii::app()->request->baseUrl; ?>/site/statistics">
						<span><?php echo Yii::t('isml_site','Statistics')?> </span>
					</a>
					<ul>
						<li>
							<a
								href="<?php echo Yii::app()->request->baseUrl; ?>/statistics/totalwin">
								<span><?php echo  Yii::t('isml_statistics','Total Win')?> </span>
							</a>
						</li>
						<li class='last'>
							<a
								href="<?php echo Yii::app()->request->baseUrl; ?>/statistics/totalvotes">
								<span><?php echo  Yii::t('isml_statistics','Total Votes')?> </span>
							</a>
						</li>

					</ul>
				</li>
			</ul>
		</div>

		<?php echo $content; ?>


		<!-- footer -->
		<div id="footer">
			<div class="panel about">
				<h3>About</h3>
			</div>
			<div class="panel share">
				<h3>Share</h3>
			</div>
			<div class="panel newsletter">
				<h3>NewsLetter</h3>
			</div>

		</div>
	</div>

	<script>	
	$("#lang-select").change(
		function()
		{	
			var lang=$("#lang-select").val();
			window.location="<?php echo Yii::app()->request->baseUrl; ?>/site/index/lang/"+lang;
		}
	);

	</script>

</body>
</html>
